package service.impl;

import dao.IWorkOrderDao;
import dao.impl.WorkOrderImpl;
import pojo.WorkOrder;
import service.IWorkorderService;
import util.PageHelper;
import vo.WorkOrderProject;

import java.util.ArrayList;

public class WorkOrderServiceImpl implements IWorkorderService {
    private IWorkOrderDao iwod=new WorkOrderImpl();
    @Override
    public boolean addWorkOrder(WorkOrder wo) {
        return iwod.insertWorkOrder(wo)>0;
    }

    @Override
    public int queryPageDataCount() {
        return iwod.selectPageDataCount();
    }

    @Override
    public ArrayList<WorkOrderProject> queryIndexData(PageHelper ph) {
        return iwod.selectIndexData(ph);
    }
}
